package com.gs.api.projects.bzapplets.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gs.api.projects.bzapplets.dao.BzBaseInfoDao;
import com.gs.api.projects.bzapplets.entity.BzBaseInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author guoyunfei on 2021/8/12 14:07
 * @className BzBaseInfoService
 * @description TODO
 * @Version 1.0
 */
@Service
public class BzBaseInfoService extends ServiceImpl<BzBaseInfoDao,BzBaseInfo> {

    @Autowired
    private BzBaseInfoDao bzBaseInfoDao;

    //获取小程序基础配置信息
    public BzBaseInfo selectOne(String appid){

        QueryWrapper<BzBaseInfo> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("appid",appid);
        BzBaseInfo info = this.getOne(queryWrapper);
        return info;
    }

}
